Two-dimensional code identification method and device, and mobile terminal

ABSTRACT

This application discloses a two-dimensional code identification method, device and a mobile terminal. The two-dimensional code identification method comprises: sensing a capture operation performed by a user on an application interface, the application interface containing a two-dimensional code; in response to the sensed capture operation, capturing an image of the application interface; scanning the image to obtain two-dimensional code information of the two-dimensional code contained in the image.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation application of InternationalPatent Application No. PCT/CN2017/093549, filed on Jul. 19, 2017, whichis based on and claims priority to the Chinese Patent Application No.201610602558.6, filed on Jul. 27, 2016 and entitled “TWO-DIMENSIONALCODE IDENTIFICATION METHOD AND DEVICE, AND MOBILE TERMINAL.” Theabove-referenced applications are incorporated herein by reference intheir entirety.

TECHNICAL FIELD

This application relates to the technical field of graphic images, andin particular to a two-dimensional code identification method anddevice, and mobile terminal.

BACKGROUND

A two-dimensional code is also called a two-dimensional bar code. Ituses a graphic of lines and spaces, formed by a particular geometricgraphic distributed along a plane (two-dimensional direction) accordingto given rules, to record data symbol information. A two-dimensionalcode is characterized by a large capacity for information, a wide rangeof coding, strong fault-tolerance, and high decoding reliability. Inaddition, it has the advantages of being low-cost and easy to fabricate.Therefore, two-dimensional codes are widely used in people's lives.

With the development of the Internet and the popularization of mobileterminals, the uses of two-dimensional codes on mobile terminals areincreasing daily. When using a two-dimensional code on a mobileterminal, identification is first performed. After a two-dimensionalcode appears in a given application on a terminal (referred to as thefirst terminal; this may be a PC terminal, mobile terminal, etc.), inthe current technologies, a terminal other than the first terminal(referred to as the second terminal) usually needs to invoke its owncamera function to scan the two-dimensional code, thereby obtaining theinformation stored in the two-dimensional code, and then achieving avariety of functions on the second terminal, such as payment functions,positioning, and social functions.

This shows that the current technologies often needs another terminalother than the terminal displaying the two-dimensional code to performidentification of the two-dimensional code. This is inconvenient forusers. For example, when a user uses a mobile terminal to watch a livebroadcast, and the user wants to scan a two-dimensional code appearingat the bottom of the screen of the mobile terminal, and then implementrelevant functions corresponding to that two-dimensional code, thecurrent technologies have no better way to meet this need than usinganother device.

SUMMARY

The main objective of this specification is to provide a two-dimensionalcode identification method, device, and mobile terminal. It is aimed atsolving the problem in existing two-dimensional code identificationmethods, in that they cannot perform identification of a two-dimensionalcode in an application interface image in an application displayed onthe display element of a mobile terminal.

According to one aspect, this specification provides a method fortwo-dimensional code identification, comprising: sensing a captureoperation performed by a user on an application interface, theapplication interface containing a two-dimensional code; in response tothe sensed capture operation, capturing an image of the applicationinterface; and scanning the image to obtain two-dimensional codeinformation of the two-dimensional code contained in the image.

In some embodiments, after obtaining the two-dimensional codeinformation of the two-dimensional code contained in the image, themethod further comprises: displaying a function operation interfacecorresponding to the obtained two-dimensional code information. In someembodiments, the method may further comprise performing a functioncorresponding to the obtained two-dimensional code information.

In some embodiments, the image contains multiple two-dimensional codes.In some embodiments, after obtaining the two-dimensional codeinformation of the multiple two-dimensional codes contained in theimage, the method further comprises: displaying an item list, the itemlist containing multiple function operation interface items eachcorresponding to one of the multiple two-dimensional codes forresponding to an operation performed by the user on the functionoperation interface items in the item list, and entering into acorresponding function operation interface.

In some embodiments, the capture operation performed by the user on theapplication interface comprises the user operating on a virtualcomponent on the application interface. In some embodiments, the captureoperation performed by the user on the application interface comprisesthe user operating on a physical button.

According to another aspect, this specification provides a device fortwo-dimensional code identification, the device comprising one or moreprocessors and one or more non-transitory computer-readable memoriescoupled to the one or more processors and configured with instructionsexecutable by the one or more processors to cause the device to performoperations comprising: sensing a capture operation performed by a useron an application interface, the application interface containing atwo-dimensional code; in response to the sensed capture operation,capturing an image of the application interface; and scanning the imageto obtain two-dimensional code information of the two-dimensional codecontained in the image.

According to still another aspect, this specification provides anon-transitory computer-readable memory to be coupled to one or moreprocessors and configured with instructions executable by the one ormore processors to cause the one or more processors to performoperations comprising: sensing a capture operation performed by a useron an application interface, the application interface containing atwo-dimensional code; in response to the sensed capture operation,capturing an image of the application interface; and scanning the imageto obtain two-dimensional code information of the two-dimensional codecontained in the image.

Compared to current technologies, in the two-dimensional codeidentification method and device and mobile terminal of the embodimentsof this specification, a two-dimensional code identification device ormobile terminal alone is used to capture an application interface imageof an application interface displayed on a display element, and to scanthe image so as to identify the two-dimensional code contained in theimage. Thus, real-time identification may be performed for atwo-dimensional code in the application interface image of anapplication interface displayed in real-time on a display element, andthe operation is fast and convenient.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings described here are used to provide a furtherunderstanding of this application, and they are a part of thisapplication. The illustrative embodiments of this application and theirdescriptions are used to explain this application, and they do not serveas improper limitations of this application. In the accompanyingdrawings:

FIG. 1 is a flow diagram of a two-dimensional code identification methodbased on an embodiment of this specification;

FIG. 2 is a flow diagram of a two-dimensional code identification methodbased on another embodiment of this specification;

FIG. 3 is a diagram of two-dimensional code identification by a mobileterminal according to an embodiment of this specification;

FIG. 4 is a diagram of two-dimensional code identification by a mobileterminal according to another embodiment of this specification;

FIG. 5 is a block diagram of a two-dimensional code identificationdevice according to an embodiment of this specification.

DETAILED DESCRIPTION

To make the objectives, technical schemes, and advantages of thisapplication clearer, a clear and comprehensive description of thetechnical schemes of this application is given below, in combinationwith the embodiments and corresponding accompanying drawings of thisapplication. The described embodiments are merely some, rather than all,of the embodiments of this application. Based on the embodiments in thisapplication, all other embodiments obtainable by those of ordinary skillin the art without creative effort shall fall within the scope ofprotection of this application.

The system will be described in further detail with reference to theaccompanying drawings. In the following description, embodiments will bedescribed in further detail with reference to the accompanying drawings.The same numerals represent the same elements.

The mobile terminal according to this specification is a devicecomprising a display element, and it may include, but is not limited to,any of the following devices: a personal computer (PC), a mobile device(such as a cell phone, a personal digital assistant (PDA), a digitalcamera, a portable game console, an MP3 player, a portable/personalmultimedia player (PMP), a handheld e-book, a tablet PC, a portablelaptop PC, and a global positioning system (GPS) navigator), a smart TV,etc.

In addition, the display element of the mobile terminal according tothis specification may comprise a touch screen and a touch screencontroller. Here, the touch screen may provide a user with userinterfaces (UI) corresponding to various services (e.g., calling, datatransmission, broadcasting, filming, payments, etc.), and it sends ananalog signal corresponding to at least one touch on the UI to a touchscreen controller. In the description of this specification, a “touch”may comprise a contact touch and a contactless touch. Here, a contacttouch refers to at least one touch input through the user's body part(e.g., a finger) or a touch input instrument (e.g., a pen or stylus)that may be received by the touch screen. The touch screen also mayreceive a touch input signal corresponding to continuous movement of onetouch or multiple touches. For example, a contact touch may comprise asingle tap, double tap, drag, drag and drop, etc. The touch screen maysend an analog signal corresponding to the continuous movement of aninput touch to the touch screen controller.

A contactless touch is also called a hover touch. For example, acontactless touch is not limited to contact between the touch screen andthe user's body part or a touch input instrument. Touch screens may havedifferent detection intervals based on the properties and configurationof the mobile terminal. In addition, touch screens may be implemented asresistive, capacitive, infrared, or acoustic wave touch screens.

The touch screen controller converts the analog signal received from thetouch screen into a digital signal (For example, X and Y coordinates). Acontroller may use the digital signal received from the touch screencontroller to control the touch screen. For example, in response to theuser's selection of a shortcut icon or button displayed on the touchscreen, the mobile terminal according to this specification may displayan application interface corresponding to the shortcut icon.

FIG. 1 is a flow diagram of a two-dimensional code identification methodaccording to an embodiment of this specification. As shown in FIG. 1, inS101, the method senses a capture operation performed by a user on anapplication interface. The application interface contains atwo-dimensional code. For example, a user input is sensed when anapplication interface, including a two-dimensional code, of anapplication is displayed on a display element of a mobile terminal.Here, the user input refers to a user performing a capture operation tothe application interface. For example, the user may select anapplication shortcut icon or button displayed on the display element, sothe mobile terminal runs the application. At this time, the applicationinterface of this application is displayed on the display element. Forexample, if the application is an instant messaging application (e.g.,WeChat), then the application interface (e.g., a chat interface) of theinstant messaging application is displayed on the display element of themobile terminal. Next, the mobile terminal senses a capture operationperformed by the user to the application interface. Here, theapplication may be an embedded application or third-party applicationstored in the storage element. An embedded application refers to apre-installed application in a portable terminal device. For example,embedded applications may be browsers, emails, and instant messengers.Third-party applications are diverse, and refer to applicationsdownloaded from online markets and installed on a mobile terminal, suchas payment applications, shopping applications, and entertainmentapplications. Third-party application may be installed and controlledfree of charge.

In addition, a user input may comprise the user's operation (e.g.,touching) to a virtual component (e.g., virtual keyboard or virtualbutton, menu, text, image, number, or icon displayed on the displayelement) displayed on the display element of a mobile terminal, or theuser's operation (e.g., pressing) to a physical button (e.g., smallkeyboard, actual button, etc.) on the mobile terminal. The virtualcomponent may be displayed in any position on the display element, basedon the user's settings. In some embodiments, during the operationprocess, the user may use a user input such as dragging to change theposition of the virtual component on the display element. For example,when the user expects a two-dimensional code displayed on the displayelement of the mobile terminal to be identified, the user maytouch/select a virtual button displayed on the display element, or pressa physical button on the mobile terminal. A detailed explanation of the“touch” in this specification has been given above; a detaileddescription will not be repeated here.

For example, the user may touch a shortcut icon displayed on the screenof the display element. In this situation, the mobile terminal will runthe application corresponding to the icon, such as a live broadcastapplication or shopping application. At the same time, the applicationinterface of this application, containing a two-dimensional code, isdisplayed on the display element of the mobile terminal. Next, the usermay directly use a finger or a stylus to touch a virtual componentdisplayed on the display element, or the user may directly hover afinger over a virtual component on the display element, or the user maypress a physical key on the mobile terminal or simultaneously press twophysical keys on the mobile terminal, to trigger the following process.

Next, in S102, in response to the sensed capture operation, the methodcaptures an image of the application interface. For example, in responseto the capture operation, an application interface image of theapplication interface displayed on the display element of the mobileterminal is captured; that is, in response to the capture operation, ascreen shot of the mobile terminal's current screen is captured. Forexample, the user may perform a screen shot of the currently displayedimage by touching a virtual button on the display element, to capturethe image of the application interface currently displayed on thedisplay element of the mobile terminal. As another example, the user mayperform a screen shot of the currently displayed application interfaceimage by pressing a physical key on a mobile phone. In some embodiments,based on the embodiments of this specification, the user may store theimage in the mobile terminal's storage element.

In S103, the method scan the image to obtain two-dimensional codeinformation of the two-dimensional code contained in the image. Forexample, the application interface image is scanned and thetwo-dimensional code information contained in the application interfaceimage is identified. That is, a full-screen scan of the applicationinterface image may be performed to identify all two-dimensional codesin the image. For example, the mobile terminal according to theembodiments of this specification may convert an image containing atwo-dimensional code into a binary image and perform a dilationoperation on the binary image to obtain a dilated binary image. Next,the mobile terminal detects the edges of the dilated binary image toobtain a contour of the two-dimensional code's bar-shaped region, andthis contour is corrected and segmented to obtain a complete andstandard bar code image. Afterward, grid sampling is performed on thisstandard bar code image (i.e., the image pixels at each point ofintersection in the grid are sampled) to build a bitmap (determiningwhether the sampled pixels are dark colors or light colors based on athreshold value) and to obtain binary data of the bar code region. Errorcorrection and translation are performed on the obtained binary data ofthe bar code region, and the obtained binary data of the bar code regionis converted into data codewords, thereby identifying alltwo-dimensional codes in the image.

This specification is not limited to the two-dimensional codeidentification technology mentioned above. Examples are used merely todescribe the current two-dimensional code identification technology. Anytechnology for identifying two-dimensional codes in an image may be usedhere.

In some embodiments, after the two-dimensional codes are identified,based on the two-dimensional code information identified from theapplication interface image, a function operation interfacecorresponding to the identified two-dimensional code information may bedisplayed on the display element of the mobile terminal. That is, acorresponding application is launched from the mobile terminal based onthe two-dimensional code identification result. The application refersto an embedded application or third-party application in the storageelement, as described earlier, Therefore, for conciseness and clarity,it will not be explained again here.

For example, if the two-dimensional code information relates to anAlipay link, the mobile terminal invokes the Alipay application; thus,an Alipay application interface is displaced on the display element. Ifthe two-dimensional code information related to a WeChat link, themobile terminal invokes the WeChat application; thus, a WeChatapplication interface is displayed on the display element. If thetwo-dimensional code information relates to a URL link, the mobileterminal invokes a browser application; thus, a browser applicationinterface is displayed on the display element.

The preceding shows a situation in which the application interface imagedisplayed on a display element comprises one two-dimensional code; thisspecification describes a situation in which the displayed applicationinterface image does not comprise a two-dimensional code. The followingis a detailed description of a situation in which an applicationinterface image displayed on the display element of a mobile terminalcomprises multiple two-dimensional codes, in reference to FIG. 2.

FIG. 2 is a flow diagram of a two-dimensional code identification methodbased on another embodiment of this specification. For example, FIG. 2shows a two-dimensional code identification method when an applicationinterface image displayed on the mobile terminal comprises multipletwo-dimensional codes.

Referring to FIG. 2, in S201, with the application interface displayedon the display element of the mobile terminal comprising two-dimensionalcodes, a capture operation performed by a user to the applicationinterface is sensed. Next, in S202, in response to the captureoperation, the application interface image of the application interfacedisplayed on the display element of the mobile terminal is captured.Then, in S203, the application interface image is scanned and thetwo-dimensional code information contained in the application interfaceimage is identified. Steps S201 through S203 in FIG. 2 are the same asSteps S101 through S103 in FIG. 1. They will not be described again,because a detailed explanation has been provided in FIG. 1.

Next, in S204, based on the two-dimensional code identification results,an item list is displayed on the display element of the mobile terminal.The item list containing the function operation interface items eachcorresponding to each of the multiple two-dimensional codes, in order torespond to the operation performed by the user on the function operationinterface items in the item list, and enter into the correspondingfunction operation interface. For example, if the application interfaceimage comprises three two-dimensional codes, after this image isscanned, three two-dimensional codes may be separately identified. Next,a list of function operation interface items corresponding to the threetwo-dimensional codes is displayed on the display element. With functionoperation interface item list being displayed on the screen, in S205,the user selects the function operation interface item to be performedfrom the function operation interface item list. In some embodiments,the user may perform selection through touch input. The touch inputcomprises the user input designated in the above description.

Finally, based on the function operation interface item selected by theuser, the display element of the mobile terminal according to thisspecification redirects to the application interface corresponding tothis function operation interface item. Still taking threetwo-dimensional codes as an example, as described above, a functionoperation interface item list corresponding to the three two-dimensionalcodes is displayed on the display element. Next, the user may touch thedesired function operation interface item. At this time, the displayelement of the mobile terminal redirects to the application interfacecorresponding to the touched function operation interface item.

As described above, the two-dimensional code identification method basedon an exemplary embodiment of this specification, using only the mobileterminal itself, may perform identification of multiple two-dimensionalcodes displayed in the application interface of an application runningon the mobile terminal and select the operation interface to beperformed. Thus, with only a simple operation by the user, the mobileterminal may automatically identify multiple two-dimensional codessimultaneously displayed on the mobile terminal, and also enter into thedesired operation interface on demand.

The following is a description of the two-dimensional codeidentification method according to this specification and its mobileterminal, with reference to application scenarios of this specification.Here, FIG. 3 is an application scenario in which the image comprises onetwo-dimensional code, and FIG. 4 is an application scenario in which theimage comprises three two-dimensional codes.

FIG. 3 is a diagram of two-dimensional code identification by a mobileterminal according to an embodiment of this specification.

As shown in FIG. 3, a live broadcast application is launched in themobile terminal of an embodiment of this specification. Thisspecification is not limited to live broadcast applications. The mentionof a live broadcast application here is merely used for the purpose ofdescription, not limitation. This specification applies to anyapplication capable of displaying an imaging comprising atwo-dimensional code on a display element.

After launching the live broadcast application, the mobile terminaldisplays the application interface of the live broadcast application onthe display element. That is, the mobile terminal displays an image 300of a host 320 conducting a live broadcast on the display element. Asshown in FIG. 3, the host 320 is displayed in the center of the image300, and a two-dimensional code appears in the upper left corner of theimage 300, e.g., a jacket link 310 shown in FIG. 3.

At any time during the live broadcast, the user may perform an operation(e.g., touch operation) using a virtual button 330 in the displayelement, thereby identifying the two-dimensional code 310. Even thoughthe button 330 in FIG. 3 appears in the lower right corner of thedisplay element, this does not limit the location of the button 330. Thebutton 330 may appear at any location in the display element, and theuser may change the location of the button 330 as needed. In addition,even though the button 330 in FIG. 3 is a virtual component, acorresponding function may also be achieved through a physical button(not shown) or keyboard (not shown) on the mobile terminal, or through avirtual keyboard displayed on the display element. After an operation isperformed on the button 330, the display element of a mobile terminalmay redirect to interface 300′. Interface 300′ may be a page for jacketpurchase, or it may be a page for jacket payment.

In addition, image 300 may comprise multiple two-dimensional codes. Thefollowing is a description of an image comprising multipletwo-dimensional codes, in reference to FIG. 4.

FIG. 4 is a diagram of two-dimensional code identification by a mobileterminal according to another embodiment of this specification.

Still using a live broadcast application as an example, after startingthe live broadcast application, the mobile terminal displays theapplication interface of the live broadcast application on the displayelement. That is, the mobile terminal displays an image 400 of a host440 conducting a live broadcast on the display element. As shown in FIG.4, the host 440 is displayed in the center of the image 400, and thereare multiple two-dimensional codes around the host 440. For example, inFIG. 4, there are three two-dimensional codes 410, 420, and 430. Thesethree two-dimensional codes 410, 420 and 430 represent a jacket link,pants link, and a link of reward payment, respectively.

The user may operate the button 450 (e.g., touch operation) at any timeduring the live broadcast, thereby identifying the multipletwo-dimensional codes 410, 420, and 430. Even though the button 450 inFIG. 4 appears in the lower right corner of the display element, thisdoes not limit the location of the button 450. The button 450 may appearat any location in the display element, and the user may change thelocation of the button 450 as needed. In addition, even though thebutton 450 in FIG. 4 is a virtual component, a corresponding functionmay also be achieved through a physical button (not shown) or keyboard(not shown) on the mobile terminal, or through a virtual keyboarddisplayed on the display element.

After an operation is performed on the button 450, the display elementof the mobile terminal may redirect to interface 400′. As shown in FIG.4, interface 400′ comprises the identified two-dimensional codeinformation displayed in a list. For example, this list comprises itemsfor redirecting to a link of reward payment, redirecting to a page forjacket purchase, and redirecting to a page for pants purchase. The usermay select the operation to be performed from this function operationinterface item list. For example, the user may select item forredirecting to the reward payment page. Then, the display element of amobile terminal may redirect to the reward payment page. For example,the user may select the item for redirect to the page for jacketpurchase, and then, the display element of the mobile terminal mayredirect to the jacket purchase page.

The following is a detailed description of a two-dimensionalidentification device according to an embodiment of this specification,in reference to FIG. 5.

FIG. 5 is a block diagram of a two-dimensional code identificationdevice according to an embodiment of this specification. The mobileterminal described above refers to an apparatus comprising atwo-dimensional code identification device. As a person skilled in theart will understand, the structure of the two-dimensional codeidentification device shown in FIG. 5 does not constitute a limitationof the mobile terminal of this specification. It may comprise more orfewer components than shown in the figure, a combination of certaincomponents, or a different arrangement of components.

As shown in FIG. 5, the two-dimensional code identification deviceaccording to an embodiment of this specification comprises a displayelement 510, a sensing element 520, a capture element 530, and anidentification element 540.

Here, the display element 510 is configured to display an applicationinterface containing a two-dimensional code. For example, the user mayselect an application shortcut icon or button displayed on the displayelement, then the mobile terminal runs this application. At this time,this application interface containing a two-dimensional code isdisplayed on the display element. For example, when the mobile terminalhas launched a live broadcast application, a frame of a host isdisplayed on the display element, as well as two-dimensional codessurrounding the frame of the host. As another example, when the mobileterminal has launched a shopping application, a frame of the merchandiseto be purchased is displayed on the display element, as well astwo-dimensional codes surrounding the merchandise frame.

The sensing element 520 is configured to sense a capture operationperformed by a user to the application interface. Here, the captureoperation performed by the user to the application interface maycomprise user input (e.g., touching or selecting) through a virtualcomponent (e.g., a virtual keyboard, menu, text, image, number, or icondisplayed on the display element) displayed on the display element of amobile terminal, or user input through a physical button (not shown) onthe mobile terminal. Afterward, the capture element 530 captures anapplication interface image of the application interface displayed onthe display element in response to the capture operation. For example,the user may perform a screen shot of the currently displayed image bytapping a virtual button on the display element, and may store thescreen shot of the image in the mobile terminal's storage element (notshown). As another example, the user may perform a screen shot of thecurrently display image by pressing a physical key on the mobileterminal, and may store the screen shot of the image in the mobileterminal's storage element.

Afterward, the identification element 540 scans the applicationinterface image and identifies the two-dimensional code informationcontained in the application interface image. An illustrativedescription of the two-dimensional code identification method hasalready been provided, which, for conciseness and clarity, will not bedescribed again here.

After the identification element 540 identifies the two-dimensionalcode, the mobile terminal according to this specification may displaythe function operation interface corresponding to the identifiedtwo-dimensional code information on the display element 510, based onthe result of two-dimensional code identification. For example, if thetwo-dimensional code identification result relates to an Alipay link,the mobile terminal invokes the Alipay application, thus displaying anoperation interface for Alipay on the display element. If thetwo-dimensional code identification result relates to a WeChat link, themobile terminal invokes the WeChat application, thus displaying anoperation interface for WeChat on the display element. If thetwo-dimensional code identification result relates to a URL link, themobile terminal invokes a browser application, thus displaying anoperation interface for a browser on the display element.

In addition, in some embodiments, the mobile terminal according to thisspecification may also comprise a storage element, and the storageelement may store captured application interface images. In addition,the storage element may also comprise embedded applications andthird-party applications that can run on the mobile terminal.

In addition, the image on the mobile terminal may comprise multipletwo-dimensional codes. Under these circumstances, after theidentification element identifies multiple two-dimensional codes, thedisplay element displays an item list, the item list containing thefunction operation interface items each corresponding to each of themultiple two-dimensional codes, in order to respond to the operationperformed by the user to the function operation interface items in theitem list, and enter into the corresponding function operationinterface.

In some embodiments, the mobile terminal according to this specificationmay comprise: a display element, displaying an application interfacecontaining a two-dimensional code; a sensing element, sensing a captureoperation performed by a user to the application interface; a captureelement, capturing an application interface image of the applicationinterface displayed on a display element in response to the captureoperation; and an identification element, scanning the applicationinterface image and identifying the two-dimensional code informationcontained in the application interface image.

In the two-dimensional code identification method and device and mobileterminal provided by the embodiments of this specification, atwo-dimensional code identification device or mobile terminal alone isused to capture, in real-time, an application interface containing atwo-dimensional code displayed on a display element and to scan theimage, thereby identifying the two-dimensional code informationcontained in the application interface image, and making the operationfast and convenient.

The executing entity of the steps of the method provided by Embodiment 1may be the same device, or this method may use different devices asexecuting entities. For example, the executing entity for Step 21 andStep 22 may be Device 1, and the executing entity for Step 23 may beDevice 2. As another example, the executing entity for Step 21 may beDevice 1, and the executing entity for Step 22 and Step 23 may be Device2; etc.

A person skilled in the art should understand that the embodiments ofthis application may be provided as a method, system, or computerprogram product. Therefore, this application may employ a pure hardwareembodiment form, a pure software embodiment form, or an embodiment formthat combines software and hardware. Also, this application may employthe form of one or more computer program products achieved throughcomputer storage media (including but not limited to magnetic discmemory, CD-ROM, optical memory, etc.) comprising computer-executableprogram code.

This specification provides description in reference to flow diagramsand/or block diagrams of methods, devices (systems), and computerprogram products according to embodiments of this specification. Everyflow and/or block in the flow diagrams and/or block diagrams, as well ascombinations of the flows and/or blocks in the flow diagrams and/orblock diagrams, may be achieved through computer program instructions.These computer program instructions may be provided to a processor of ageneral-purpose computer, specialized computer, embedded processor, orother programmable data processing device to produce a machine, causingthe instructions executed by the processor of a computer or otherprogrammable data processing device to produce a device configured toachieve the functions designated in one or more flows of a flow diagramand/or one or more blocks of a block diagram.

These computer program instructions can also be stored incomputer-readable memory that can cause a computer or other programmabledata processing device to operate in a given mode, causing theinstructions stored in this computer-readable memory to generate aproduct comprising an instruction apparatus. This instruction apparatusachieves the functions specified in one or more flows of a flow diagramand/or one or more blocks of a block diagram.

These computer program instructions can also be loaded onto a computeror other programmable data processing device, enabling the execution ofa series of operation steps on the computer or other programmable deviceto produce computer processing. In this way, the instructions executedon the computer or other programmable device provide steps for achievingthe specified functions of one or more flows in a flow diagram and/orone or more blocks in a block diagram.

In one typical configuration, the computation equipment comprises one ormore processors (CPUs), input/output interfaces, network interfaces, andinternal memory.

The internal memory may comprise the forms of volatile memory oncomputer-readable media, random access memory (RAM), and/or non-volatileRAM, such as read-only memory (ROM) or flash RAM. Internal memory is anexample of computer-readable media.

Computer-readable media include permanent, nonpermanent, mobile, andimmobile media, which can achieve information storage through any methodor technology. The information may be computer-readable instructions,data structures, program modules, or other data. Examples of computerstorage media include, but are not limited to, Phase-change RAM (PRAM),Static RAM (SRAM), Dynamic RAM (DRAM), other types of Random AccessMemory (RAM), Read-Only Memory (ROM), Electrically Erasable ProgrammableRead-Only Memory (EEPROM), flash memory or other internal memorytechnologies, Compact Disk Read-Only Memory (CD-ROM), Digital VersatileDiscs (DVD) or other optical memories, cassettes, magnetic tape and diskmemories or other magnetic memory devices, or any other non-transmissionmedia, which can be used for storing information that can be accessed bya computation device. According to the definitions herein,computer-readable media exclude transitory computer-readable media(transitory media), such as modulated data signals and carriers.

It should also be noted that the terms “comprise” and “contain” or anyvariations thereof are intended as non-exclusive inclusion. Thus, aprocess, method, product, or device comprising a series of elements doesnot comprise these elements only. It also comprises other elements notexplicitly listed, or it also comprises elements inherent to thatprocess, method, product, or device. When there are no otherlimitations, an element defined by the phrasing “comprising one . . . ”does not exclude the presence of other, similar elements in the process,method, product, or device comprising the element.

A person skilled in the art should understand that the embodiments ofthis application may be provided as a method, system, or computerprogram product. Therefore, this application may employ a pure hardwareembodiment form, a pure software embodiment form, or an embodiment formthat combines software and hardware. Also, this application may employthe form of one or more computer program products achieved throughcomputer storage media (including but not limited to magnetic discmemory, CD-ROM, optical memory, etc.) comprising computer-executableprogram code.

The preceding are merely embodiments of this application, which are notused to limit this application. Various modifications and changes tothis application are available to a person skilled in the art. Allrevisions, equivalent substitutions, and improvements made within thespirit and principles of this application shall fall within the scope ofprotection of this application.

What is claimed is:
 1. A method for two-dimensional code identification,the method comprising: displaying an application interface of a firstapplication on a display element of a user terminal; sensing anoperation performed by a user on the application interface, theapplication interface containing multiple two-dimensional codes; inresponse to the sensed operation, and without further user intervention:capturing an image of the application interface, scanning the capturedimage to obtain two-dimensional code information of the multipletwo-dimensional codes contained in the captured image, and displaying anitem list, the item list containing multiple function operationinterface items including a first function operation interface itemcorresponding to a first one of the two-dimensional codes and a secondfunction operation interface item corresponding to a second one of thetwo-dimensional codes, wherein each function operation interface item isoperable by the user to perform a function specified by thetwo-dimensional code information obtained from the correspondingtwo-dimensional code; and responsive to the user operating a functionoperation interface item corresponding to one of the two-dimensionalcodes: invoking a second application, the second application specifiedby the two-dimensional code information obtained from one of thetwo-dimensional codes, and displaying an operation interface for thesecond application on the display element of the user terminal.
 2. Thetwo-dimensional code identification method according to claim 1, whereinthe operation performed by the user on the application interfacecomprises the user operating on a virtual component on the applicationinterface.
 3. The two-dimensional code identification method accordingto claim 1, wherein the operation performed by the user on theapplication interface comprises the user operating on a physical button.4. A device for two-dimensional code identification, the devicecomprising one or more processors and one or more non-transitorycomputer-readable memories coupled to the one or more processors andconfigured with instructions executable by the one or more processors tocause the device to perform operations comprising: displaying anapplication interface of a first application on a display element of auser terminal; sensing an operation performed by a user on theapplication interface, the application interface containing multipletwo-dimensional codes; in response to the sensed operation, and withoutfurther user intervention: capturing an image of the applicationinterface, scanning the captured image to obtain two-dimensional codeinformation of the multiple two-dimensional codes contained in thecaptured image, and displaying an item list, the item list containingmultiple function operation interface items including a first functionoperation interface item corresponding to a first one of thetwo-dimensional codes and a second function operation interface itemcorresponding to a second one of the two-dimensional codes, wherein eachfunction operation interface item is operable by the user to perform afunction specified by the two-dimensional code information obtained fromthe corresponding two-dimensional code; and responsive to the useroperating a function operation interface item corresponding to one ofthe two-dimensional codes: invoking a second application, the secondapplication specified by the two-dimensional code information obtainedfrom one of the two-dimensional codes, and displaying an operationinterface for the second application on the display element of the userterminal.
 5. The device according to claim 4, wherein the operationperformed by the user on the application interface comprises the useroperating on a virtual component displayed on the device.
 6. The deviceaccording to claim 4, wherein the operation performed by the user on theapplication interface comprises the user operating on a physical buttonof the device.
 7. A non-transitory computer-readable memory to becoupled to one or more processors and configured with instructionsexecutable by the one or more processors to cause the one or moreprocessors to perform operations comprising: displaying an applicationinterface of a first application on a display element of a userterminal; sensing an operation performed by a user on the applicationinterface, the application interface containing multiple two-dimensionalcodes; in response to the sensed operation, and without further userintervention: capturing an image of the application interface, scanningthe captured image to obtain two-dimensional code information of themultiple two-dimensional codes contained in the captured image, anddisplaying an item list, the item list containing multiple functionoperation interface items including a first function operation interfaceitem corresponding to a first one of the two-dimensional codes and asecond function operation interface item corresponding to a second oneof the two-dimensional codes, wherein each function operation interfaceitem is operable by the user to perform a function specified by thetwo-dimensional code information obtained from the correspondingtwo-dimensional code; and responsive to the user operating a functionoperation interface item corresponding to one of the two-dimensionalcodes: invoking a second application, the second application specifiedby the two-dimensional code information obtained from one of thetwo-dimensional codes, and displaying an operation interface for thesecond application on the display element of the user terminal.
 8. Thenon-transitory computer-readable memory according to claim 7, whereinthe operation performed by the user on the application interfacecomprises the user operating on a virtual component displayed on theapplication interface.
 9. The non-transitory computer-readable memoryaccording to claim 7, wherein the operation performed by the user on theapplication interface comprises the user operating on a physical button.